<?php if($conf['head_ziti'] == 1):?>
<style>
@font-face{font-family: 'zti';src:  url('<?=meihuaassets?>ziti/16669639223510ca1849ed6955456.zip');}body{font-family:'zti';}
</style>
<?php endif?>
<?php if($conf['head_ziti1'] == 1):?>
<style>
    @media screen and (min-width: 1000px){
        html,body{
            font-family:"华文新魏";
        }
    }
</style>
<?php endif?>
<?php if ($conf['head_ziti2']== 1) : ?>
<style>
    @media screen and (min-width: 1000px){
        html,body{
            font-family:"楷体";
        }
    }
</style>
<?php endif?>
<?php if ($conf['head_ziti3']== 1) : ?>
<style>
    @font-face{font-family: 'zti';src:  url('<?=meihuaassets?>ziti/mj1.ttf');}body{font-family:'zti';}
</style>
<?php endif?>
<?php if ($conf['head_ziti4']== 1) : ?>
<style>
    @font-face{font-family: 'zti';src:  url('<?=meihuaassets?>ziti/mj2.ttf');}body{font-family:'zti';}
</style>
<?php endif?>
<?php if ($conf['head_ziti5']== 1) : ?>
<style>
    @font-face{font-family: 'zti';src:  url('<?=meihuaassets?>ziti/mj3.ttf');}body{font-family:'zti';}
</style>
<?php endif?>
<?php if ($conf['head_ziti6']== 1) : ?>
<style>
    @font-face{font-family: 'zti';src:  url('<?=$conf['head_zitizdy']?>');}body{font-family:'zti';}
</style>
<?php endif?>
<?php if ($conf['head_shubiao']== 1) : ?>
<style>
    body{cursor: url(<?=meihuaassets?>ziti/1667901245583ef3c46207647bb81.zip), default;}a:hover{cursor:url(<?=meihuaassets?>ziti/1667901245585c1674949a7b173f7.zip), pointer;}
</style>
<?php endif?>
<?php if ($conf['head_bianhui']== 1) : ?>
<style>
html{-webkit-filter: grayscale(100%);filter: grayscale(100%);}
</style>
<?php endif?>
<?php if ($conf['head_gundong']== 1) : ?>
<style>
    ::-webkit-scrollbar {/**大小*/
      width: 10px;  
      height: 1px;
    }
    ::-webkit-scrollbar-thumb {/**颜色*/
      background-color: #12b7f5;
      background-image: -webkit-linear-gradient(45deg, rgba(255, 93, 143, 1) 25%, transparent 25%, transparent 50%, rgba(255, 93, 143, 1) 50%, rgba(255, 93, 143, 1) 75%, transparent 75%, transparent);
    }
    ::-webkit-scrollbar-track {/**背景*/
        -webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
        background: #f6f6f6;
    }
</style>
<?php endif?>
<?php if ($conf['head_dingbubt']== 1) : ?>
<script>
var OriginTitile = document.title,
titleTime;
document.addEventListener("visibilitychange",
function() {
    if (document.hidden) {
        document.title = "你别走吖 ʕ ᵔᴥᵔ ʔ";
        clearTimeout(titleTime)
    } else {
        document.title = "欢迎回来o( ❛ᴗ❛ )o" ;
        titleTime = setTimeout(function() {
            document.title = OriginTitile
        },
        2000)
    }
});
</script>
<?php endif?>
<?php if ($conf['head_huadong']== 1) : ?>
<script src="<?=meihuaassets?>js/shubiao.js"></script>
<?php endif?>
<?php if ($conf['head_baozha']== 1) : ?>
<canvas class="baozha" style="position:fixed;left:0;top:0;z-index:99999999;pointer-events:none;"></canvas>
<script src="<?=meihuaassets?>js/bz.js"></script>
<?php endif?>
<?php if ($conf['head_aixin']== 1) : ?>
<script src="<?=meihuaassets?>js/aixin.js"></script>
<?php endif?>
<?php if ($conf['head_hzjzg']== 1) : ?>
<script src="<?=meihuaassets?>js/hxjzg.js"></script>
<?php endif?>
<?php if ($conf['head_xiaxue']== 1) : ?>
<script src="<?=meihuaassets?>js/xiaxue.js"></script>
<?php endif?>

<?php if ($conf['head_yinhua']== 1) : ?>
<script>
            var stop, staticx; // eslint-disable-line no-unused-vars
			var img = new Image();
		img.src = "<?=meihuaassets?>png/1667907255624fea52ef736deb355.png";

			function Sakura(x, y, s, r, fn) {
				this.x = x;
				this.y = y;
				this.s = s;
				this.r = r;
				this.fn = fn;
			}

			Sakura.prototype.draw = function(cxt) {
				cxt.save();
				var xc = 40 * this.s / 4;
				cxt.translate(this.x, this.y);
				cxt.rotate(this.r);
				cxt.drawImage(img, 0, 0, 40 * this.s, 40 * this.s)
				cxt.restore();
			}

			Sakura.prototype.update = function() {
				this.x = this.fn.x(this.x, this.y);
				this.y = this.fn.y(this.y, this.y);
				this.r = this.fn.r(this.r);
				if(this.x > window.innerWidth ||
					this.x < 0 ||
					this.y > window.innerHeight ||
					this.y < 0
				) {
					this.r = getRandom('fnr');
					if(Math.random() > 0.4) {
						this.x = getRandom('x');
						this.y = 0;
						this.s = getRandom('s');
						this.r = getRandom('r');
					} else {
						this.x = window.innerWidth;
						this.y = getRandom('y');
						this.s = getRandom('s');
						this.r = getRandom('r');
					}
				}
			}

			SakuraList = function() {
				this.list = [];
			}
			SakuraList.prototype.push = function(sakura) {
				this.list.push(sakura);
			}
			SakuraList.prototype.update = function() {
				for(var i = 0, len = this.list.length; i < len; i++) {
					this.list[i].update();
				}
			}
			SakuraList.prototype.draw = function(cxt) {
				for(var i = 0, len = this.list.length; i < len; i++) {
					this.list[i].draw(cxt);
				}
			}
			SakuraList.prototype.get = function(i) {
				return this.list[i];
			}
			SakuraList.prototype.size = function() {
				return this.list.length;
			}

			function getRandom(option) {
				var ret, random;
				switch(option) {
					case 'x':
						ret = Math.random() * window.innerWidth;
						break;
					case 'y':
						ret = Math.random() * window.innerHeight;
						break;
					case 's':
						ret = Math.random();
						break;
					case 'r':
						ret = Math.random() * 6;
						break;
					case 'fnx':
						random = -0.5 + Math.random() * 1;
						ret = function(x, y) {
							return x + 0.5 * random - 1.7;
						};
						break;
					case 'fny':
						random = 1.5 + Math.random() * 0.7
						ret = function(x, y) {
							return y + random;
						};
						break;
					case 'fnr':
						random = Math.random() * 0.03;
						ret = function(r) {
							return r + random;
						};
						break;
				}
				return ret;
			}

			function startSakura() {

				requestAnimationFrame = window.requestAnimationFrame ||
					window.mozRequestAnimationFrame ||
					window.webkitRequestAnimationFrame ||
					window.msRequestAnimationFrame ||
					window.oRequestAnimationFrame;
				var canvas = document.createElement('canvas'),
					cxt;
				staticx = true;
				canvas.height = window.innerHeight;
				canvas.width = window.innerWidth;
				canvas.setAttribute('style', 'position: fixed;left: 0;top: 0;pointer-events: none;');
				canvas.setAttribute('id', 'canvas_sakura');
				document.getElementsByTagName('body')[0].appendChild(canvas);
				cxt = canvas.getContext('2d');
				var sakuraList = new SakuraList();
				for(var i = 0; i < 50; i++) {
					var sakura, randomX, randomY, randomS, randomR, randomFnx, randomFny;
					randomX = getRandom('x');
					randomY = getRandom('y');
					randomR = getRandom('r');
					randomS = getRandom('s');
					randomFnx = getRandom('fnx');
					randomFny = getRandom('fny');
					randomFnR = getRandom('fnr');
					sakura = new Sakura(randomX, randomY, randomS, randomR, {
						x: randomFnx,
						y: randomFny,
						r: randomFnR
					});
					sakura.draw(cxt);
					sakuraList.push(sakura);
				}
				stop = requestAnimationFrame(function() {
					cxt.clearRect(0, 0, canvas.width, canvas.height);
					sakuraList.update();
					sakuraList.draw(cxt);
					stop = requestAnimationFrame(arguments.callee);
				})
			}

			window.onresize = function() {
				var canvasSnow = document.getElementById('canvas_sakura');
				canvasSnow.width = window.innerWidth;
				canvasSnow.height = window.innerHeight;
			}

			img.onload = function() {
				startSakura();
			}

			function stopp() {
				if(staticx) {
					var child = document.getElementById("canvas_sakura");
					child.parentNode.removeChild(child);
					window.cancelAnimationFrame(stop);
					staticx = false;
				} else {
					startSakura();
				}
			}
    </script>
<?php endif?>
<?php if ($conf['head_fengye']== 1) : ?>
<script>var stop,staticx;var img=new Image();img.src="<?=meihuaassets?>png/1667903028607b4bde6c7040dface.png";function Sakura(x,y,s,r,fn){this.x=x;this.y=y;this.s=s;this.r=r;this.fn=fn}Sakura.prototype.draw=function(cxt){cxt.save();var xc=20*this.s/2;cxt.translate(this.x,this.y);cxt.rotate(this.r);cxt.drawImage(img,0,0,20*this.s,20*this.s);cxt.restore()};Sakura.prototype.update=function(){this.x=this.fn.x(this.x,this.y);this.y=this.fn.y(this.y,this.y);this.r=this.fn.r(this.r);if(this.x>window.innerWidth||this.x<0||this.y>window.innerHeight||this.y<0){this.r=getRandom("fnr");if(Math.random()>0.4){this.x=getRandom("x");this.y=0;this.s=getRandom("s");this.r=getRandom("r")}else{this.x=window.innerWidth;this.y=getRandom("y");this.s=getRandom("s");this.r=getRandom("r")}}};SakuraList=function(){this.list=[]};SakuraList.prototype.push=function(sakura){this.list.push(sakura)};SakuraList.prototype.update=function(){for(var i=0,len=this.list.length;i<len;i++){this.list[i].update()}};SakuraList.prototype.draw=function(cxt){for(var i=0,len=this.list.length;i<len;i++){this.list[i].draw(cxt)}};SakuraList.prototype.get=function(i){return this.list[i]};SakuraList.prototype.size=function(){return this.list.length};function getRandom(option){var ret,random;switch(option){case"x":ret=Math.random()*window.innerWidth;break;case"y":ret=Math.random()*window.innerHeight;break;case"s":ret=Math.random();break;case"r":ret=Math.random()*4;break;case"fnx":random=-0.5+Math.random()*1;ret=function(x,y){return x+0.5*random-1.7};break;case"fny":random=1.5+Math.random()*0.7;ret=function(x,y){return y+random};break;case"fnr":random=Math.random()*0.03;ret=function(r){return r+random};break}return ret}function startSakura(){requestAnimationFrame=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;var canvas=document.createElement("canvas"),cxt;staticx=true;canvas.height=window.innerHeight;canvas.width=window.innerWidth;canvas.setAttribute("style","position: fixed;left: 0;top: 0;pointer-events: none;");canvas.setAttribute("id","canvas_sakura");document.getElementsByTagName("body")[0].appendChild(canvas);cxt=canvas.getContext("2d");var sakuraList=new SakuraList();for(var i=0;i<50;i++){var sakura,randomX,randomY,randomS,randomR,randomFnx,randomFny;randomX=getRandom("x");randomY=getRandom("y");randomR=getRandom("r");randomS=getRandom("s");randomFnx=getRandom("fnx");randomFny=getRandom("fny");randomFnR=getRandom("fnr");sakura=new Sakura(randomX,randomY,randomS,randomR,{x:randomFnx,y:randomFny,r:randomFnR});sakura.draw(cxt);sakuraList.push(sakura)}stop=requestAnimationFrame(function(){cxt.clearRect(0,0,canvas.width,canvas.height);sakuraList.update();sakuraList.draw(cxt);stop=requestAnimationFrame(arguments.callee)})}window.onresize=function(){var canvasSnow=document.getElementById("canvas_snow")};img.onload=function(){startSakura()};function stopp(){if(staticx){var child=document.getElementById("canvas_sakura");child.parentNode.removeChild(child);window.cancelAnimationFrame(stop);staticx=false}else{startSakura()}};</script>
<?php endif?>
